/*
 * Copyright 2010. 
 * 
 * This document may not be reproduced, distributed or used 
 * in any manner whatsoever without the expressed written 
 * permission of xrkol Corp. 
 * 
 * $Rev: Rev $
 * $Author: Author $
 * $LastChangedDate: LastChangedDate $
 *
 */

package com.xrkol.sharelib.service;

import java.util.List;

import com.xrkol.sharelib.entity.User;
import com.xrkol.sharelib.entity.Guardian;
import com.xrkol.sharelib.entity.Student;

/**
 * @author peng.xia
 *
 */
public interface GuardianService extends BaseService<Guardian, String>{

    /**
     * 根据学生查找家长信息
     * 
     * @param student
     * @return
     */
    List<Guardian> findByStudent(Student student);

    /**
     * 根据家长和学生查找对应的信息
     * 
     * @param guardian
     * @param student
     * @return
     */
    Guardian findByStudentAndGuardian(User guardian, Student student);

    /**
     * 根据联系人查找器对应的家长信息
     * 
     * @param adult
     * @return
     */
    List<Guardian> findByAdult(User adult);

    List<Guardian> getGuardiansByStudents(List<Student> students);


}
